#!/bin/bash
#进入本目录
path=/home/lv/AndroidStudioProjects/lightningPro
cd $path
#执行打包命令
./gradlew assembleReRelease >/home/lv/1.txt
if [ $? -eq 0 ]; then
    echo `tree app/build/outputs/apk`
    #拷贝打包文件到指定位置
    cp $path/app/build/outputs/apk/re/release/$1 /home/lv/html/release/
    echo "打包成功"
else
    echo "打包失败"
fi
